package com.medical.admin.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;


/*
 * @Date : 2024/4/27 下午1:28
 * @Created by Lang
 * @ProjectName : medical-appointment-registration
 */

/**
 * 管理员表
 */
@Data
@TableName(value = "mar_admin")
public class Admin {
    /**
     * 管理员id
     */
    @TableId(value = "mar_admin_id", type = IdType.INPUT)
    private Long marAdminId;

    /**
     * 管理员用户名
     */
    @TableField(value = "mar_admin_username")
    private String marAdminUsername;

    /**
     * 管理员账号
     */
    @TableField(value = "mar_admin_account")
    private String marAdminAccount;

    /**
     * 角色id
     */
    @TableField(value = "mar_role_id")
    private Integer marRoleId;

    /**
     * 管理员电话
     */
    @TableField(value = "mar_admin_phone")
    private String marAdminPhone;

    /**
     * 管理员状态: 0禁用 1启用
     */
    @TableField(value = "mar_admin_status")
    private Integer marAdminStatus;

    /**
     * 添加事件
     */
    @TableField(value = "mar_admin_create_time")
    private Date marAdminCreateTime;

    /**
     * 密码
     */
    @TableField(value = "mar_admin_password")
    private String marAdminPassword;

    /**
     * 加密盐
     */
    @TableField(value = "salt")
    private String salt;

    public static final String COL_MAR_ADMIN_ID = "mar_admin_id";

    public static final String COL_MAR_ADMIN_USERNAME = "mar_admin_username";

    public static final String COL_MAR_ADMIN_ACCOUNT = "mar_admin_account";

    public static final String COL_MAR_ROLE_ID = "mar_role_id";

    public static final String COL_MAR_ADMIN_PHONE = "mar_admin_phone";

    public static final String COL_MAR_ADMIN_STATUS = "mar_admin_status";

    public static final String COL_MAR_ADMIN_CREATE_TIME = "mar_admin_create_time";

    public static final String COL_MAR_ADMIN_PASSWORD = "mar_admin_password";

    public static final String COL_SALT = "salt";
}